More fixes for #77807:
authorMatthias Clasen <matthiasc@src.gnome.org>
Thu, 11 Apr 2002 21:18:40 +0000 (21:18 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Thu, 11 Apr 2002 21:18:40 +0000 (21:18 +0000)
commit693951085158842b584cfb7289e5ad75d7d6600a
treecd98c146d4acb69ddc8cb837ba04b2f6f4af386f
parente60568a1da1c38da1793e9eab1364d0c8ddb6fa9
More fixes for #77807:

* io-tga.c (get_contiguous_pixbuf): Helper function to create
a pixbuf with a contiguous pixel array while being careful about
overflow.

* io-tga.c (fill_in_context, get_image_pseudocolor,
get_image_truecolor, get_image_grayscale): Use
get_contiguous_pixbuf instead of manually allocating image
storage.

* io-xpm.c (pixbuf_create_from_xpm):
* io-pnm.c (gdk_pixbuf__pnm_image_load):
* io-jpeg.c (gdk_pixbuf__jpeg_image_load): Use gdk_pixbuf_new
instead of manually allocating image storage.
gdk-pixbuf/ChangeLog
gdk-pixbuf/io-jpeg.c
gdk-pixbuf/io-pnm.c
gdk-pixbuf/io-tga.c
gdk-pixbuf/io-xpm.c